﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Presentation
{
    public partial class ManHinhHeThong : Form
    {
        public DangNhap formDangNhap;
        public ManHinhHeThong(DangNhap form)
        {
            InitializeComponent();
            formDangNhap = form;
        }


        private void thayĐổiSốKháchTốiĐaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThayDoiSoKhachToiDa form4 = new ThayDoiSoKhachToiDa();
            form4.ShowDialog();
        }

        private void thayĐổiHệSốKháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThayDoiHeSoKhachHang form = new ThayDoiHeSoKhachHang();
            form.ShowDialog();
        }

        private void thayĐổiTỷLệPhụThuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThayDoiPhuThu form = new ThayDoiPhuThu();
            form.ShowDialog();
        }

        private void thêmLoạiPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThemLoaiPhong form = new ThemLoaiPhong();
            form.ShowDialog();
        }

        private void thêmLoạiKháchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThemLoaiKhach form = new ThemLoaiKhach();
            form.ShowDialog();
        }

        private void thoátToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void quảnLýPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLyPhong form = new QuanLyPhong();
            form.ShowDialog();
        }

        private void quảnLýPhiếuThuêPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QuanLyPhieuThue form = new QuanLyPhieuThue();
            form.ShowDialog();
        }

        private void lậpHóaĐơnThanhToánToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapHoaDonThanhToan form = new LapHoaDonThanhToan();
            form.ShowDialog();
        }

        private void lậpBáoCáoDoanhThuTheoLoạiPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapBaoCaoLoaiPhong form1 = new LapBaoCaoLoaiPhong();
            form1.ShowDialog();
        }

        private void lậpBáoCáoMậtĐộSửDụngPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            LapBaoCaoMatDo form2 = new LapBaoCaoMatDo();
            form2.ShowDialog();
        }

        private void traCứuPhòngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            TraCuuPhong form = new TraCuuPhong();
            form.ShowDialog();
        }

        private void thôngTinỨngDụngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThongTinUngDung form = new ThongTinUngDung();
            form.ShowDialog();
        }

        private void hướngDẫnSửDụngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Help.ShowHelp(this, Application.StartupPath + "\\Help.chm");
        }

        private void thayĐổiĐơnGiáToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThayDoiDonGiaPhong form3 = new ThayDoiDonGiaPhong();
            form3.ShowDialog();
        }

        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            
            DangNhap form = new DangNhap();
            this.Hide();
            form.ShowDialog();
        }

    }
}
